const {override, fixBabelImports, addLessLoader, addWebpackModuleRule} = require('customize-cra');
const WebpackConnfig = require('./webpack.config')
module.exports = override(
    fixBabelImports("import", {
        libraryName: "antd",
        libraryDirectory: "es",
        style: true,
    }),
    addLessLoader({
        javascriptEnabled: true,
        // modifyVars: { '@primary-color': '#1DA57A' },
    }),
     addWebpackModuleRule(...WebpackConnfig.module.rules),
    (config) => {

        process.env.PUBLIC_URL='./'
        config.output.publicPath = ''
        return config
    }
)

